from django.template import Library

register = Library()


@register.simple_tag
def money(a, b):
    result = a * b
    return result


@register.filter
def rest(lst):
    return lst[0:5]


@register.filter
def phone(num):

    return str(num)[0:3] + '****' + str(num)[8:]